package com.bmw.util;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Created by a on 2019/1/10.
 */
@Configuration
public class WebConfig  implements WebMvcConfigurer  {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/x1/**.mp4").addResourceLocations("file:H:/xx/");
        registry.addResourceHandler("/images/**").addResourceLocations("file:G://xx//im/cc//");
        registry.addResourceHandler("/smallVideo/**").addResourceLocations("file:G://xx//video//smallVideo//");
    }

}
